import requests
from bs4 import BeautifulSoup

for i in range(10):
    url = 'https://book.douban.com/top250?start='+str(i*10)
    res = requests.get(url)
    content = res.text
    soup = BeautifulSoup(content,'html')
    items = soup.find_all('tr',class_='item')
    for item in items:
        name = item.find_all('a')[1].string     #书名
        link = item.find_all('a')[1]['href']    #链接
        comment = item.find_all('span')[1].string  #评分
        print(name,link,comment)